<form id="c-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('券类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-type" class="form-control" type="text" value="{$row.type|htmlentities}" readonly>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('券名')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[sku_name]" type="text" value="{$row.sku_name|htmlentities}" readonly>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('店铺')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shop_id" data-rule="required" data-source="shop/shop/index" class="form-control selectpage" name="row[shop_id]" type="text" value="{$row.shop_id|htmlentities}" readonly>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('券类型')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="couponType" item="vo"}
                <label for="row[type]-{$key}"><input id="row[type]-{$key}" name="row[type]" type="radio" value="{$key}" {in name="key" value="$row.type"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>

    <div class="form-group">
        <div id="room">
            <label class="control-label col-xs-12 col-sm-2">{:__('包厢')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-room_id" data-search-field="name" data-source="shop/shoproom/index" data-multiple="true" class="form-control selectpage" name="row[room_id]" type="text" value="{$row.room_id|htmlentities}">
            </div>
        </div>
        <div style="display: none" id="table">
            <label class="control-label col-xs-12 col-sm-2">{:__('台桌')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-table_id" data-search-field="name" data-source="shop/shoptable/index" data-multiple="true" class="form-control selectpage" name="row[table_id]" type="text" value="{$row.room_id|htmlentities}">
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hour')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hour" class="form-control" name="row[hour]" type="number" value="{$row.hour|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Use_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-use_time" class="form-control" name="row[use_time]" type="text" value="{$row.use_time|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Week')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-week" class="form-control" name="row[week]" type="text" value="{$row.week|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('折扣价')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}" readonly>
        </div>
    </div>
    <div class="form-group layer-footer">
        <div class="col-xs-12 col-sm-2" style="margin-left: 65%">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>


